// 将时间戳转换为字符串格式的时间
export const dateFormatToString = (time: number): string => { 
  const date = new Date(time)
  const Y = date.getFullYear()
  const M = date.getMonth() + 1
  const D = date.getDate()
  const m = M < 10 ? '0' + M : M
  const d = D < 10 ? '0' + D : D
  return `${Y}-${m}-${d}`
}
